package org.chen.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("video_avatar")
public class VideoAvatar extends Model<VideoAvatar> {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    @TableField("avatar_id")
    private String avatarId;
    
    @TableField("avatar_name")
    private String avatarName;
    
    private String gender;
    
    @TableField("preview_image_url")
    private String previewImageUrl;
    
    @TableField("preview_video_url")
    private String previewVideoUrl;
    
    private Boolean premium;

    @TableField("is_public")
    private Boolean isPublic;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}